home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / PWAPG10.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-08-16  |  2KB  |  65 lines

  1. @echo off
  2. rem
  3. rem -------------------------------------------------------------------------
  4. rem Prompts Galore! v1.0 by Drew
  5. rem -------------------------------------------------------------------------
  6. rem
  7. if .%1==. goto help
  8. if .%2==. goto help
  9. if not .%4==. goto help
  10. if not exist %1 goto help
  11. rem if not exist %2\prompts.ppe goto help
  12. if .%3==.all goto all
  13.  
  14. :default
  15.     if not exist %3.PPE goto NoPPE
  16.     mkpcbtxt %1 /i:%3 "!%2\%3.PPE"
  17. goto done
  18.  
  19. :all
  20.     mkpcbtxt %1 /i:196 "!%2\196.ppe"
  21.     mkpcbtxt %1 /i:296 "!%2\296.ppe"
  22.     mkpcbtxt %1 /i:403 "!%2\403.ppe"
  23.     mkpcbtxt %1 /i:449 "!%2\449.ppe"
  24.     mkpcbtxt %1 /i:474 "!%2\474.ppe"
  25.     mkpcbtxt %1 /i:500 "!%2\500.ppe"
  26.     mkpcbtxt %1 /i:550 "!%2\550.ppe"
  27.     mkpcbtxt %1 /i:551 "!%2\551.ppe"
  28.     mkpcbtxt %1 /i:662 "!%2\662.ppe"
  29.     mkpcbtxt %1 /i:678 "!%2\678.ppe"
  30. goto done
  31.  
  32.  
  33. :NoPPE
  34.     echo There is no ppe for prompt #%3.  Please try again.
  35. goto done
  36.  
  37.  
  38. :help
  39. cls
  40. echo.
  41. echo To install Prompts Galore, type:
  42. echo.
  43. echo        install PCBTEXT PPEDIR OPTION
  44. echo.
  45. echo        OPTION must be either "all" to install all prompts, or the prompt
  46. echo            number itself if you just want to install one prompt.
  47. echo.
  48. echo        PCBTEXT is the full pathname of your PCBTEXT file.
  49. echo.
  50. echo        PPEDIR is the directory of where Prompts Galore is to be installed.
  51. echo.
  52. echo Examples:
  53. echo.
  54. echo     install C:\PCB\GEN\PCBTEXT C:\PPE\PG all  -- installs all prompts
  55. echo     install C:\PCB\GEN\PCBTEXT C:\PPE\PG 474  -- installs prompt 474
  56. echo.
  57.  
  58. :done
  59. echo.
  60. echo Prompts Galore v1.0 by Drew
  61. echo.
  62. echo Gawd I hate batch files.  T/csh-shell scripts would have been so
  63. echo much nicer. :)   --Drew
  64. echo.
  65.